package com.fenghongzhang.day015;

public class MusicUtil {
    public static final int PLAY_MODEL_SINGLE = 0;
    public static final int PLAY_MODEL_RANDOM = 1;
    public static final int PLAY_MODEL_ORDER = 2;


    //格式化时间 3:17  或者 3:07
    public static String fmtTime(String time){
        //190145
        int i = Integer.parseInt(time);
        if(i / 1000 % 60 < 10){
            return i / 1000 / 60 +":0" + i /1000 % 60;
        }
        return i / 1000 / 60 +":" + i /1000 % 60;
    }

}
